package com.ithema.method1;

import com.ithema.domain.Student;

import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入学生信息：");
        String stuInfo = sc.nextLine();
        String[] sp = stuInfo.split("，");
        Student stu=new Student();
        System.out.println(stu.getName()+"-----"+stu.getAge());
    }
}
